package com.yugao.fintech.antelope.base.config;

import com.yugao.fintech.antelope.base.config.core.ScanConfigListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class ConfigRunner implements ApplicationRunner {
    @Autowired
    private ScanConfigListener configListener;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        configListener.scan();
    }
}
